package com.ai.bitcoin.jpa.service;

import com.ai.bitcoin.jpa.entity.BccBatch;

import java.util.Date;
import java.util.List;

/**
 * @author Jason
 * @date 2018/3/29
 **/
public interface BccBatchService {
    BccBatch save(BccBatch bccBatch);


    List<BccBatch> findByBatchTypeAndBatchStateOrderByBatchTimeEndDesc(String bathType, String batchState);

    BccBatch findOneByBatchTypeAndBatchStateOrderByBatchTimeEndDesc(String bathType, String batchState);

    List<BccBatch> findByBatchTypeAndBatchStateAndBatchTimeEndGreaterThan(String bathType, String batchState, Date date);

}
